/*
 * @Author: your name
 * @Date: 2021-09-22 09:27:17
 * @LastEditTime: 2021-09-22 15:35:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \数据结构\队列\链表队列\main.c
 */
#include<stdbool.h>
#include<stdio.h>
#include "queue.c"
int main(){
    QUEUE* q = createQueue();

    printf("create\n");
    EnQueue(q,1);
    EnQueue(q,2);
    EnQueue(q,3);
    EnQueue(q,4);
    EnQueue(q,5);
    printf("EnQueue\n");
    //5
    printf("length:%d\n",QueueLength(q));
    printf("getLength\n");
    DeQueue(q);
    DeQueue(q);

    //3
    printf("length:%d\n",QueueLength(q));
    
    clearQueue(q);

    //0
    printf("length:%d\n",QueueLength(q));

    //释放
    freeQueue(q);
    return 0;
}